import { createStore } from 'vuex'; //引入vuex
const store = createStore({
    state: {
        userInfo: {},
        isLogin: false
    },
    getters: {

    },
    mutations: {
        // 修改用户信息
        updataUser(state, data) {
            state.userInfo = data;
        },
        updateLoginState(state,data) {
            state.isLogin = data
        }
    },
    actions: {

    },
    modules: {

    }
})
export default store; //导出